package cn.mifengkong.appcommon.webview.jshandler;

import com.mifengkong.frtools.jsbridge.CallBackFunction;
import com.mifengkong.frtools.jsbridge.JsHandler;

import cn.mifengkong.appcommon.webview.listener.JsBridgeCallBackListener;

/**
 * Created by jack on 2018/5/9
 */

public class LivingDetectionJSHandler implements JsHandler {

    private JsBridgeCallBackListener mLivingDetectionCallBack;

    public LivingDetectionJSHandler(JsBridgeCallBackListener livingDetectionCallBack) {
        mLivingDetectionCallBack = livingDetectionCallBack;
    }

    @Override
    public void OnHandler(String handlerName, String responseData, CallBackFunction function) {
        if (null != mLivingDetectionCallBack) {
            mLivingDetectionCallBack.toStartLivingDetection(function);
        }
    }
}